# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-azure-mgmt-redis
pkgver=14.5.0
pkgrel=1
pkgdesc='Microsoft Azure Redis Cache Management Client Library for Python.'
arch=('any')
url='https://pypi.org/project/azure-mgmt-redis/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.zip")
sha512sums=('a410a433995fac418904201dc2fa100996310c718ce6705e098d02c5aac74a1ff785bdca7f3d2a5695f989addaf6457d379ba71b665553336b064ce3493972cc')

build() {
  cd "azure-mgmt-redis-$pkgver"

  python setup.py build
}

package() {
  cd "azure-mgmt-redis-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

